package com.mingrisoft.servlet.info;

import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mingrisoft.domain.Result;

/**
 * Created by huangzf on  2018/11/19
 */
@WebServlet("/info1")
public class InfoServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        Map<String,Object> map = new LinkedHashMap<String, Object>();
        map.put("info","企业门户网站");
        map.put("name","huang");

        Result.genSuccessResult(map,resp);
    }
}
